package Error;
public class Test  {
    public static void func ()throws ArrayIndexOutOfBoundsException{
        int []arr={1,2,3};
        System.out.println(arr[100]);
    }

    public static void main(String[] args) {

        try{
            func();
        }catch (ArrayIndexOutOfBoundsException e){
            e.printStackTrace();
        }

        System.out.println("fhasdkh");
    }
}

